{if not empty( $SIDEBARS )}
  <div class="sidebar">
    {$SIDEBARS}
  </div>
{/if}